import { ApiProperty } from '@nestjs/swagger';
import { ArticleBaseItem } from './article-base.vo';

export class Info extends ArticleBaseItem {}

export class ArticleInfoResponse {
  @ApiProperty({ description: '状态码', example: 200 })
  code: number;

  @ApiProperty({ description: '信息', example: '成功' })
  message: string;

  @ApiProperty({
    description: '数据',
    type: () => Info,
    example: ArticleBaseItem,
  })
  data: Info;
}
